﻿using System;
using System.Linq;
using System.Reflection;
using System.Web;
using Developer.Entity;
using Super.Framework.Common;
using Super.Framework.Config;

namespace Developer.Service
{
    public class DataCache : BaseCache
    {
    }

    public partial class SysInfo
    {

        /// <summary> 数据库
        /// </summary> 
        public static jixunxiuEntities DB
        {

            get
            {
                
                if (DataCache.HttpContext == null)
                {
                    return DataCache.StaticCache.TryGetVal("__DB", () => new jixunxiuEntities());

                }
                else
                {
                    return DataCache.HttpContext.TryGetVal("__DB", () => new jixunxiuEntities());
                }
            }
        }
 
    }
}
